﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace StoreWeb.system.basis
{
    public partial class productvalue : System.Web.UI.Page
    {
        Maticsoft.BLL.InventorySize bll = new Maticsoft.BLL.InventorySize();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hidid.Value = Request["id"];
                cInvCode.Value = Request["cInvCode"];
                //this.ckbtnlist.DataSource = sqlbll.query("select name from dbo.Dictionary where parentcode='SZ_TTCLASS' group by name");
                //this.ckbtnlist.DataTextField = "name";
                //this.ckbtnlist.DataValueField = "name";
                //this.ckbtnlist.DataBind();
                if (!string.IsNullOrEmpty(hidid.Value))
                {
                    Maticsoft.Model.InventorySize md = bll.GetModel(Convert.ToInt32(hidid.Value));
                    if (md != null)
                    {
                        List<Maticsoft.Model.InventorySize> sizelist = bll.GetModelList("name='" + md.name + "'");
                        name.Value = md.name;
                        value.Value = md.value;
                        cInvCode.Value = md.cInvCode;
                    }
                }
            }
        }
    }
}